package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 工单总费用冻结占用释放表，与工单一对一
 * </p>
 *
 * @author WEN
 * @since 2024-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjWorkTotalFeeFreeze对象", description="工单总费用冻结占用释放表，与工单一对一")
public class ZjWorkTotalFeeFreeze implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID/工单ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "厂商ID")
    private Long factoryId;

    @ApiModelProperty(value = "工单单号")
    private String workNo;

    @ApiModelProperty(value = "是否冻结占用：0-否，1-是")
    @TableField("is_freeze")
    private Boolean freeze;

    @ApiModelProperty(value = "冻结占用单号")
    private String freezeCode;

    @ApiModelProperty(value = "冻结占用时间")
    private Date freezeTime;

    @ApiModelProperty(value = "是否解冻占用：0-否，1-是")
    @TableField("is_unfreeze")
    private Boolean unfreeze;

    @ApiModelProperty(value = "解冻占用单号")
    private String unfreezeCode;

    @ApiModelProperty(value = "解冻占用时间")
    private Date unfreezeTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
